home *** CD-ROM | disk | FTP | other *** search
/ Macintosh Animation Showcase / Macintosh Animation Showcase CD-ROM.iso / SOURCES / Help / background_6722.txt < prev    next >
Encoding:
Text File  |  1988-12-23  |  4.6 KB  |  215 lines

  1. -- background: 6722 from stack: in
  2. -- bmap block id: 7114
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on mouseUp
  8.   global fldname, display
  9.  
  10.   put word 2 of the target into targetType
  11.   if (targetType ‚↠"button") and (targetType ‚↠"field") then
  12.     exit mouseup
  13.   end if
  14.  
  15.   put the short name of the target into fldName
  16.   if (last word of fldName = "field") then
  17.     delete last word of fldName
  18.   end if
  19.  
  20.   put the visible of card field fldName into display
  21.   set the visible of card field fldName to not display
  22.  
  23.   if (display) then
  24.     set the scroll of card field fldName to 0
  25.   end if
  26.  
  27. end mouseUp
  28.  
  29. on closeCard
  30.   set lockscreen to true
  31.   repeat with i = 1 to the number of card fields
  32.     if ("field"=last word of the short name of card field i) then
  33.       put empty into card field i
  34.       next repeat
  35.     end if
  36.     hide card field i
  37.   end repeat
  38.  
  39.   pass closeCard
  40. end closeCard
  41.  
  42.  
  43.  
  44. -- part 1 (button)
  45. -- low flags: 00
  46. -- high flags: 2000
  47. -- rect: left=66 top=113 right=135 bottom=147
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 1
  51. -- font id: 0
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: search for
  56. ----- HyperTalk script -----
  57. on mouseUp
  58.   set lockscreen to true
  59.   if not (visible of card field (the short name of me)) then
  60.     put "mac.." into card field "search for field"
  61.   else
  62.     put empty into card field "search for field"
  63.   end if
  64.   pass mouseup
  65. end mouseUp
  66.  
  67.  
  68.  
  69. -- part 2 (button)
  70. -- low flags: 00
  71. -- high flags: 2000
  72. -- rect: left=66 top=135 right=157 bottom=147
  73. -- title width / last selected line: 0
  74. -- icon id / first selected line: 0 / 0
  75. -- text alignment: 1
  76. -- font id: 0
  77. -- text size: 12
  78. -- style flags: 0
  79. -- line height: 16
  80. -- part name: And
  81. ----- HyperTalk script -----
  82. on mouseUp
  83.   set lockscreen to true
  84.   if not (visible of card field (the short name of me)) then
  85.     put "discovery" into card field "and field"
  86.   else
  87.     put empty into card field "and field"
  88.   end if
  89.   pass mouseup
  90. end mouseUp
  91.  
  92.  
  93.  
  94. -- part 4 (button)
  95. -- low flags: 00
  96. -- high flags: 2000
  97. -- rect: left=66 top=186 right=208 bottom=147
  98. -- title width / last selected line: 0
  99. -- icon id / first selected line: 0 / 0
  100. -- text alignment: 1
  101. -- font id: 0
  102. -- text size: 12
  103. -- style flags: 0
  104. -- line height: 16
  105. -- part name: But Not
  106. ----- HyperTalk script -----
  107. on mouseUp
  108.   set lockscreen to true
  109.   if not (visible of card field (the short name of me)) then
  110.     put "CAD.." into card field "but not field"
  111.   else
  112.     put empty into card field "but not field"
  113.   end if
  114.   pass mouseup
  115. end mouseUp
  116.  
  117.  
  118.  
  119. -- part 5 (button)
  120. -- low flags: 00
  121. -- high flags: 2000
  122. -- rect: left=66 top=210 right=232 bottom=147
  123. -- title width / last selected line: 0
  124. -- icon id / first selected line: 0 / 0
  125. -- text alignment: 1
  126. -- font id: 0
  127. -- text size: 12
  128. -- style flags: 0
  129. -- line height: 16
  130. -- part name: And Not
  131.  
  132.  
  133. -- part 6 (button)
  134. -- low flags: 00
  135. -- high flags: 2000
  136. -- rect: left=358 top=210 right=230 bottom=427
  137. -- title width / last selected line: 0
  138. -- icon id / first selected line: 0 / 0
  139. -- text alignment: 1
  140. -- font id: 0
  141. -- text size: 12
  142. -- style flags: 0
  143. -- line height: 16
  144. -- part name: Cancel
  145.  
  146.  
  147. -- part 7 (button)
  148. -- low flags: 00
  149. -- high flags: 2000
  150. -- rect: left=354 top=140 right=165 bottom=432
  151. -- title width / last selected line: 0
  152. -- icon id / first selected line: 0 / 0
  153. -- text alignment: 1
  154. -- font id: 0
  155. -- text size: 12
  156. -- style flags: 0
  157. -- line height: 16
  158. -- part name: search
  159.  
  160.  
  161. -- part 8 (button)
  162. -- low flags: 00
  163. -- high flags: 2000
  164. -- rect: left=358 top=176 right=196 bottom=427
  165. -- title width / last selected line: 0
  166. -- icon id / first selected line: 0 / 0
  167. -- text alignment: 1
  168. -- font id: 0
  169. -- text size: 12
  170. -- style flags: 0
  171. -- line height: 16
  172. -- part name: Find First
  173.  
  174.  
  175. -- part 9 (field)
  176. -- low flags: 01
  177. -- high flags: 0000
  178. -- rect: left=10 top=300 right=319 bottom=275
  179. -- title width / last selected line: 0
  180. -- icon id / first selected line: 0 / 0
  181. -- text alignment: 0
  182. -- font id: 3
  183. -- text size: 12
  184. -- style flags: 0
  185. -- line height: 16
  186. -- part name: directions
  187. ----- HyperTalk script -----
  188. on mouseup
  189. end mouseup
  190.  
  191.  
  192. -- part 10 (button)
  193. -- low flags: 00
  194. -- high flags: 2000
  195. -- rect: left=66 top=160 right=182 bottom=147
  196. -- title width / last selected line: 0
  197. -- icon id / first selected line: 0 / 0
  198. -- text alignment: 1
  199. -- font id: 0
  200. -- text size: 12
  201. -- style flags: 0
  202. -- line height: 16
  203. -- part name: And 2
  204. ----- HyperTalk script -----
  205. on mouseUp
  206.   set lockscreen to true
  207.   if not (visible of card field (the short name of me)) then
  208.     put "publish.." into card field "and 2 field"
  209.   else
  210.     put empty into card field "and 2 field"
  211.   end if
  212.   pass mouseup
  213. end mouseUp
  214.  
  215.